using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerState_TopFall : PlayerStateBase
{
    public PlayerState_TopFall(StateMachine stateMachine, Player player, string animName) : base(stateMachine, player, animName)
    {

    }
    public override void OnFixedUpdate()
    {
        base.OnFixedUpdate();
        player.SetVelocity(player.MoveInput.x * player._topmoveSpeed, rb.velocity.y);
        if (player.IsGround())
        {
            stateMachine.SwitchState(player.PlayerTopIdleState);
            return;
        }
    }
}
